#include "Length.h"


using std::ostream;


Length::Length(const Amount& amount, const LengthUnit& unit)
        : Quantity<LengthUnit>(amount, unit), formater(formater)
{}
        
void Length::format(ostream& os) const
{
    os << formater(getBaseAmount()).format;
}

ostream& operator<<(ostream& os, const Length& length)
{
    length.format(os);
    return os;
}
